<!-- BEGIN: center-->
<script language="JavaScript">
	function doReport(){
		var frm = document.frmReport;
		if(frm.project_id.value == '0'){
			alert('Please choose a project!');
			frm.project_id.focus();
			return false;
		}
		if(frm.task_description.value == ''){
			alert('Please enter task description!');
			frm.task_description.focus();
			return false;
		}
		if(frm.task_time.value == ''){
			alert('Please enter task time!');
			frm.task_time.focus();
			return false;
		}
		frm.submit();
	}
</script>
<div class="row">
	<div class="elevencol block-title">
		Create Report
	</div>
	<div class="elevencol">
		<form method="post" action="" name="frmReport">
		<input type="hidden" name="frmAct" value="doReport" />
		<input type="hidden" name="frmTaskId" value="{TaskId}" />
		<table border="0" cellspacing="5" cellpadding="5" width="100%">
			<tr>
				<td width="120">Project:</td>
				<td>
					<select name="project_id">
						<option value="0">choose project</option>
						<!-- BEGIN: listSelectProject -->
						<option value="{listSelectProject.project_id}" {listSelectProject.project_selected}>{listSelectProject.project_name}</option>
						<!-- END: listSelectProject -->
					</select>
				</td>
			</tr>
			<tr>
				<td>Task Description:</td>
				<td><textarea name="task_description" cols="50" rows="6">{editReportDescription}</textarea></td>
			</tr>
			<tr>
				<td>Time:</td>
				<td><input type="text" value="{editReportTime}" name="task_time" size="3" /> hour(s) e.g: 1 or 1.5</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="button" value="Save" name="Save" onclick="doReport();" /></td>
			</tr>
		</table>
		</form>
	</div>
	<div class="elevencol block-title">
		Projects
	</div>
	<div class="elevencol" style="padding-top: 10px;">
		<ul class="list_project_sum">
			<!-- BEGIN: ListProjectSum -->
			<li><span>{ListProjectSum.project_name}</span> ( {ListProjectSum.projectTaskLink}  -  {ListProjectSum.projectFeedbackLink} )</li>
			<!-- END: ListProjectSum -->
		</ul>
	</div>
</div>
<!-- END: center-->